//
//  UINavigationController+LYAdd.h
//  LYDevelopKit
//
//  Created by 李阳 on 2018/5/26.
//

#import <UIKit/UIKit.h>

@interface UINavigationController (LYAdd)

- (BOOL)isOnlyContainRootViewController;

- (__kindof UIViewController *)rootViewController;

- (__kindof UIViewController *)searchViewControllerWithClass:(Class)cls;

- (NSArray<UIViewController *> *)popToViewControllerWithClass:(Class)cls animated:(BOOL)animated;

- (NSArray<UIViewController *> *)popToViewControllerWithLevel:(NSInteger)level animated:(BOOL)animated;

- (void)setItemTitleTextAttributes:(NSDictionary<NSAttributedStringKey,id> *)attributes forState:(UIControlState)state;

@end



